package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.Flower;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerMapper {
    //条件查询分页
    public List<Flower> pageList(@Param("flower") Flower flower,
                                 @Param("pageBegin") Integer pageBegin,
                                 @Param("pageSize") Integer pageSize);

    //根据条件查询查总记录数
    public Integer count(@Param("flower") Flower flower);

    public int insert(Flower flower);

    public int update(Flower flower);

    public int delete(@Param("flowerId") Integer flowerId);

    //详情
    public Flower selectId(@Param("flowerId") Integer flowerId);

    //查重
    public Flower selectName(@Param("flowerName") String flowerName);
}
